/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.eps.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Renato
 */
@Entity
@Table(name = "parametros")
@NamedQueries({
    @NamedQuery(name = "Parametros.findAll", query = "SELECT p FROM Parametros p"),
    @NamedQuery(name = "Parametros.findByIdParametro", query = "SELECT p FROM Parametros p WHERE p.idParametro = :idParametro"),
    @NamedQuery(name = "Parametros.findByParam1", query = "SELECT p FROM Parametros p WHERE p.param1 = :param1"),
    @NamedQuery(name = "Parametros.findByParam2", query = "SELECT p FROM Parametros p WHERE p.param2 = :param2"),
    @NamedQuery(name = "Parametros.findByParam3", query = "SELECT p FROM Parametros p WHERE p.param3 = :param3"),
    @NamedQuery(name = "Parametros.findByParam4", query = "SELECT p FROM Parametros p WHERE p.param4 = :param4"),
    @NamedQuery(name = "Parametros.findByParam5", query = "SELECT p FROM Parametros p WHERE p.param5 = :param5"),
    @NamedQuery(name = "Parametros.findByDescripcion", query = "SELECT p FROM Parametros p WHERE p.descripcion = :descripcion"),
    @NamedQuery(name = "Parametros.findByParam7", query = "SELECT p FROM Parametros p WHERE p.param7 = :param7"),
    @NamedQuery(name = "Parametros.findByParam8", query = "SELECT p FROM Parametros p WHERE p.param8 = :param8"),
    @NamedQuery(name = "Parametros.findByContFamiliar", query = "SELECT p FROM Parametros p WHERE p.contFamiliar = :contFamiliar"),
    @NamedQuery(name = "Parametros.findByParam9", query = "SELECT p FROM Parametros p WHERE p.param9 = :param9"),
    @NamedQuery(name = "Parametros.findByFecha", query = "SELECT p FROM Parametros p WHERE p.fecha = :fecha"),
    @NamedQuery(name = "Parametros.findByParam10", query = "SELECT p FROM Parametros p WHERE p.param10 = :param10"),
    @NamedQuery(name = "Parametros.findByParamEntero", query = "SELECT p FROM Parametros p WHERE p.paramEntero = :paramEntero")})
public class Parametros implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "id_parametro")
    private String idParametro;
    @Column(name = "param1")
    private String param1;
    @Column(name = "param2")
    private String param2;
    @Column(name = "param3")
    private Character param3;
    @Column(name = "param4")
    private String param4;
    @Column(name = "param5")
    private String param5;
    @Column(name = "descripcion")
    private String descripcion;
    @Column(name = "param7")
    private BigDecimal param7;
    @Column(name = "param8")
    private BigDecimal param8;
    @Column(name = "cont_familiar")
    private Integer contFamiliar;
    @Column(name = "param9")
    private Boolean param9;
    @Column(name = "fecha")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fecha;
    @Column(name = "param10")
    private String param10;
    @Column(name = "paramEntero")
    private Integer paramEntero;
    @Column(name = "paramTextoLargo")
    private String paramTextoLargo;

    public Parametros() {
    }
    public Parametros(String idParametro, String param1, String param2, Character param3, String param4, String param5, String descripcion, BigDecimal param7, BigDecimal param8, Integer contFamiliar, Boolean param9, Date fecha, String param10, Integer paramEntero, String paramTextoLargo) {
        this.idParametro = idParametro;
        this.param1 = param1;
        this.param2 = param2;
        this.param3 = param3;
        this.param4 = param4;
        this.param5 = param5;
        this.descripcion = descripcion;
        this.param7 = param7;
        this.param8 = param8;
        this.contFamiliar = contFamiliar;
        this.param9 = param9;
        this.fecha = fecha;
        this.param10 = param10;
        this.paramEntero = paramEntero;
        this.paramTextoLargo = paramTextoLargo;
    }
    public Parametros(String idParametro) {
        this.idParametro = idParametro;
    }

    public String getIdParametro() {
        return idParametro;
    }

    public void setIdParametro(String idParametro) {
        this.idParametro = idParametro;
    }

    public String getParam1() {
        return param1;
    }

    public void setParam1(String param1) {
        this.param1 = param1;
    }

    public String getParam2() {
        return param2;
    }

    public void setParam2(String param2) {
        this.param2 = param2;
    }

    public Character getParam3() {
        return param3;
    }

    public void setParam3(Character param3) {
        this.param3 = param3;
    }

    public String getParam4() {
        return param4;
    }

    public void setParam4(String param4) {
        this.param4 = param4;
    }

    public String getParam5() {
        return param5;
    }

    public void setParam5(String param5) {
        this.param5 = param5;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    public BigDecimal getParam7() {
        return param7;
    }

    public void setParam7(BigDecimal param7) {
        this.param7 = param7;
    }

    public BigDecimal getParam8() {
        return param8;
    }

    public void setParam8(BigDecimal param8) {
        this.param8 = param8;
    }

    public Integer getContFamiliar() {
        return contFamiliar;
    }

    public void setContFamiliar(Integer contFamiliar) {
        this.contFamiliar = contFamiliar;
    }

    public Boolean getParam9() {
        return param9;
    }

    public void setParam9(Boolean param9) {
        this.param9 = param9;
    }

    public Date getFecha() {
        return fecha;
    }

    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    public String getParam10() {
        return param10;
    }

    public void setParam10(String param10) {
        this.param10 = param10;
    }

    public Integer getParamEntero() {
        return paramEntero;
    }

    public void setParamEntero(Integer paramEntero) {
        this.paramEntero = paramEntero;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idParametro != null ? idParametro.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {

        if (!(object instanceof Parametros)) {
            return false;
        }
        Parametros other = (Parametros) object;
        if ((this.idParametro == null && other.idParametro != null) || (this.idParametro != null && !this.idParametro.equals(other.idParametro))) {
            return false;
        }
        return true;
    }

    public String getParamTextoLargo() {
        return paramTextoLargo;
    }

    public void setParamTextoLargo(String paramTextoLargo) {
        this.paramTextoLargo = paramTextoLargo;
    }


    @Override
    public String toString() {
        return "suministros.ejb30.entity.Parametros[idParametro=" + idParametro + "]";
    }

}
